﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Handrise.CDCable.Business
{
    /// <summary>
    /// 实体映射属性，用于和主站的实体映射
    /// </summary>
    public class EntityMappingAttribute : Attribute
    {
        /// <summary>
        /// 对应主站的实体属性名称
        /// </summary>
        public string ColumnName { get; set; }	   

        /// <summary>
        /// 对应主站的实体列表名称
        /// </summary>
        public string ListName { get; set; }        

        /// <summary>
        /// 对应的主站实体名称
        /// </summary>
        public  string EntityName { get; set; }

        /// <summary>
        /// 上传时对应的实体名称
        /// </summary>
        public string UploadEntityName { get; set; }

        /// <summary>
        /// 上传时对应的实体列表名称
        /// </summary>
        public string UploadListName { get; set; }

        /// <summary>
        /// 上传时对应的实体属性名称
        /// </summary>
        public string UploadColumnName { get; set; }

        /// <summary>
        /// 类型 0:设备 1：标准数据 2:设备GPS数据
        /// </summary>
        private int dataType = 0 ;
        public int DataType
        {
            get
            {
                return dataType;
            }
            set
            {
                dataType = value;
            }
        }

        public EntityMappingAttribute()
        {

        }
    }
    
}
